<script setup lang="ts">
const url = "https://gitee.com/cjx090566";
</script>

<template>
  <div id="userLayout">
    <a-layout style="height: 100vh">
      <a-layout-header class="header">
        <a-space>
          <img src="../assets/logo.jpg" class="logo" />
          <div>智答 AI答题平台</div>
        </a-space>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a-link :href="url" target="_blank" class="custom-link"
          >站主：陈嘉鑫
        </a-link>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<style scoped>
#userLayout {
  padding-top: 100px;
  text-align: center;
  background: url("https://gw.alipayobjects.com/zos/rmsportal/FfdJeJRQWjEeGTpqgBKj.png")
    0% 0% / 100% 100%;
}

#userLayout .logo {
  width: 48px;
  height: 48px;
}

#userLayout .header {
  margin-top: 16px;
  font-size: 21px;
}

#userLayout .content {
  margin-bottom: 16px;
  padding: 20px;
}

.footer {
  padding: 16px;
  text-align: center;
  background: #efefef;
}

.custom-link {
  color: #1890ff; /* 修改链接的默认颜色 */
  text-decoration: none; /* 移除下划线 */
}

/* 修改鼠标悬停时的链接颜色 */

.custom-link:hover {
  color: #40a9ff;
}
</style>
